Tabs = {
  show:  function(tab,tab_c){
  var tabs = document.getElementById('tabs').getElementsByTagName('div'); 
  var tabs_c = document.getElementById('services').getElementsByTagName('div');
  var loop_length = tabs.length>=tabs_c.length?tabs.length:tabs_c.length;
  
  for(var i=0; i < loop_length; i++){ 
    try {tabs[i].className = tabs[i].id != tab ? 'tab' : 'tab active';} catch(e) {}
    try{
      if(tabs_c[i].className == 'tab_container')
      {
        tabs_c[i].style.display = tabs_c[i].id != tab_c ? 'none' : 'block';
      }
    }catch(e) {}
  } 
},

get: function(tab_name, hide){
	
	if(!hide) document.getElementById(tab_name).className = 'tab active';
    
  if(! document.getElementById(tab_name+'_c')){
    var service_div = document.createElement("div");
    service_div.id = tab_name+'_c';
    service_div.className = 'tab_container';
    if(hide) service_div.style.display = 'none';
    document.getElementById('services').appendChild(service_div);
  }
  
  if(!hide) Tabs.show(tab_name, tab_name+'_c');
}

}
